package bean;

public class UserBean {
    private int id;
    private String username;
    private String password = "111";
    private String relname;
    private String level;

    public UserBean() {
    }

    public UserBean(String username, String relname, String level) {
        this.username = username;
        this.relname = relname;
        this.level = level;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRelname() {
        return relname;
    }

    public void setRelname(String relname) {
        this.relname = relname;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "UserDO{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", relname='" + relname + '\'' +
                ", level='" + level + '\'' +
                '}'+"\n";
    }
}
